<?xml version="1.0"?>
<component name="org.nuxeo.ecm.diff.actions.override">

  <require>org.nuxeo.ecm.diff.actions</require>

  <extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <!-- Current selection actions -->
    <action id="CURRENT_DOCUMENT_SELECTION_DIFF" label="command.clipboard.diff" link="#{diffActions.prepareCurrentDocumentSelectionDiff}" order="100">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canDiffCurrentDocumentSelection</filter-id>
    </action>

    <!-- Trash actions -->
    <action id="CURRENT_TRASH_SELECTION_DIFF" label="command.clipboard.diff" link="#{diffActions.prepareCurrentTrashSelectionDiff}" order="100">
      <category>CURRENT_SELECTION_TRASH_LIST</category>
      <filter-id>canDiffCurrentTrashSelection</filter-id>
    </action>

    <!-- Section actions -->
    <action id="CURRENT_SECTION_SELECTION_DIFF" label="command.clipboard.diff" link="#{diffActions.prepareCurrentSectionSelectionDiff}" order="100">
      <category>CURRENT_SELECTION_SECTIONS_LIST</category>
      <filter-id>canDiffCurrentSectionSelection</filter-id>
    </action>

    <!-- Worklist actions -->
    <action icon="/icons/action_diff.png" id="CURRENT_DEFAULT_SELECTION_DIFF" label="command.clipboard.diff" link="#{diffActions.prepareCurrentDefaultSelectionDiff}" order="100">
      <category>DEFAULT_LIST</category>
      <filter-id>canDiffCurrentDefaultSelection</filter-id>
    </action>

    <!-- Version actions -->
    <action id="CURRENT_VERSION_SELECTION_DIFF" label="command.clipboard.diff" link="#{diffActions.prepareCurrentVersionSelectionDiff}" order="100">
      <category>CURRENT_VERSION_SELECTION_LIST</category>
      <filter-id>canDiffCurrentVersionSelection</filter-id>
    </action>

    <action id="CURRENT_VERSION_DIFF" label="command.versions.diffCurrent" link="#{diffActions.prepareCurrentVersionDiff}" order="100">
      <category>VERSION_LIST_ITEM</category>
    </action>

  </extension>

</component>
